package cn.edu.just.firstjavaapp.l17;

public class MyCountRunnable  implements Runnable{
    @Override
    public void run() {
        for(int i=1;i<=20;i++) {
            System.out.println(Thread.currentThread().getName()+":" + i);
            try {
                Thread.sleep(350);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
